package com.oozol.lieluyun.config;

import com.oozol.lieluyun.resultmsg.ResultErrorMsg;
import java.lang.reflect.Field;

public class TypeInfoHelper {
   public static ErrCode GetPropertyName(String fieldName) {
      try {
         ResultErrorMsg resultErrorMsg = new ResultErrorMsg();
         Field field = fieldName.getClass().getField(fieldName);
         int code = Integer.parseInt(fieldName.replace("_", ""));
         String msg = (String)field.get(resultErrorMsg);
         return new ErrCode(code, msg);
      } catch (Exception var5) {
         return null;
      }
   }
}
